﻿@using WineStore.Extends;
@model IList<WineStore.Models.Setting>
@{
    ViewBag.Title = "ShowSetting";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
}
@section Styles
{
    <style type="text/css">
        td {
            text-align: center;
            vertical-align: middle;
        }
    </style>
}
<link href="../../Content/styletablesim.css" rel="stylesheet" />
<script src="../../Scripts/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
    $(function () {
        /* For zebra striping */
        $("table tr:nth-child(odd)").addClass("odd-row");
        /* For cell text alignment */
        $("table td:first-child, table th:first-child").addClass("first");
        /* For removing the last border */
        $("table td:last-child, table th:last-child").addClass("last");
    });
</script>
@section Scripts
{
    <!--Sử dụng cho row hover-->
    <script type="text/javascript">
        $(document).ready(function () {
            $("tr").not(':first').hover(function () {
                $(this).css("background", "#F0FFFF");
            }, function () {
                $(this).css("background", "");
            }
            );
        });
    </script>

}
<!-- Table (TABLE) -->
<h3 class="tit">Quản Lý Email Liên Hệ
</h3>
@using (Html.BeginForm())
{
    <table border="1" style="width:100%">
        <tr>
            <th>Email
            </th>

            <th>Sự kiện</th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
               
                <td>
                    @Html.DisplayFor(setting=>item.Email)  
                </td>          
                <td>
                    @Html.ActionLink("Sửa", "EditSetting", new { id = item.SettingId }, new { @class="edit"})
                </td>
            </tr>
        }
       
    </table>
}

